Better assertions in StoringMiddleware tests.