adding test for badRequest