Adds a couple tests for API error handling.