Fix the logging tests due to some changes.