Make error test case pass.