Add tests for 422 errors