refactoring validation tests