Refactor de tests