Fix persister spec setup
Refactor treebankPersister