Corrected the tests in library

I adapted the tests we created in the library in order to make them work with the new implementation
Merge branch 'master' of https://github.com/aghosn/persistence