log module unit tests