Unit test of glist included in main.c. It is helpful for understanding usage of glist.