refactoring of code and tests, to use epublib (WIP)