Utility code used for constructing tests in a lazy manner has been moved out of the RepeatNode class