more negative tests for api_error