Add tests checking for responses in exception cases

In response to https://github.com/yesodweb/wai/pull/175#issuecomment-25477881