Add exception to test case