repositioned runTests method