adding methods to test tree elements enabled or disabled