Unit tests for logs