add functionality to retrieve primitive child values of nodes + tests