Fixing logger tests