tests for base middlewares and auth middlewares