add test.c to test lookdir library work