fix(tests): using extendMiddlewares