Implemented Validator unit test case.