Implemented CompositeValidator and test cases