refactores unit tests