move test_log.c to demo