refactored test. root node was inserted outside of consumer function