Add documentation and test about parent/child

Closes #51.
(cherry picked from commit 0ab1315)