LibraryTest: Added test cases.