add immediate error test case