Fixes tests to work with OwinMiddleware abstract class