test for registering OWIN middleware in bottles.  Closes GH-577