add tests for badResponse