Tests for log writer