New tests for logger middleware
Fixed auth fix breaking error flow