Add test for view validation error