Simplified the tests. Fixed wrong HTTP status on bad request.