refactored testhelpers out of the tests class