cleanup bad request handling
improve fastcgi tests