Added some tests on Library