Add exception in test_case