test and render groups
refactor rendering of document and group
Parse `Select` fragment.
Parse `Embed` fragment.