Failing test case for api errors