refactoring test file