refatorando tests