add basic tests for merge-tree