improve runTests script