add log function test.