refactores tests