comparison validators tests refactoring