Added integration test
Some parts are working
Stuck on getTree/revision problem