improved code coverage for validator