add testcase for no raise_error and make it pass