refactoring testes