Add some tests for tree contextmenu