added test for validating dependency
custom validation support