functions/tests/log_test.py: Add test for log function