Add beginnings of a unit-test for functions in lib