refactors tests to use helper methods