fix licence
add test for slist

loosely based on a cunit test file for slist