correct bad request + tests