Fixing exception test case