tests: add option handling to tests.sh