refactored feature tests into helper files