Add type error to test_case