* lispet.c: add predefine func and test cases