improved run-tests.sh