Fix failing logger middleware specs