- Fixed middleware unit tests