Add tests for log factory service