Tests for Sessions/SessionMiddlewareProxy

Covers the SessionMiddleProxy.

Please review the `testAfterMiddlewarePassedClosureIntegration` as I have been unsure how to unit test the closure passed to application, and this was the way I could figure, downside is that is it a single test which contains more then just one unit.