Add unit test for library.