Refactorings e testes