add specs for log middlewares