tests: fixed arguments processing in run-tests.sh