Remove exception in test_case