Writes test to apply a block to children
Implements applyBlockToChildren