Add tree unit test for mayHaveChildren and expando display