Refactor menor. Se agregan tests