This tests that names.item() and names[index] must return correct property name in tree order and it should not contain duplicate tokens.