Basic testing for the library functions.