html: restructure and group the tree construction tests