add test for tree voting