rewrite unexpected validation error test case