Add tests to confirm proxy middleware is working.

These tests are for the behavior that was laid out by @mislav in the
 #247 pull-request.