Fixed exception test case.