fix for tests related to logging in