Added test for bad request