added tests for $validator.validate()
added tests for validator.directive