add test for var-unshared trees