Relax very strict test and fix the expected status codes for bad request tests

As discussed offline.