Improve test coverage of glist.c