first test refactoring