Unit test + makefile changes for libtest