ENH: add hook for patient hierarchy testing (from Csaba)

This hook will allow testing but will later be refactored when
the patient hieararchy work is finalized.

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21629 3bd1e089-480b-0410-8dfb-8563597acbee