Added test for validation error