Fix typo in logging

Unit tests