Make sure API errors get reported to Rollbar
Add tests for API