fix for middleware test, adding some logger tests