Functionality to compare tree with disk (incl tests)