Added a testcase for testing the error interface