Added test cases for validators.