Implement tests and fix for HttpKernel handleRequest.
Initial implementations to handleException.