Updated unit-tests for libraries