refactor testestes e codigo