I would go a step further and define the function in a separate file that we can include (source) in all harness test files,
Next steps is to fill this "include file" with more stuff and make the harness test files thinner.
All this contextBroker-start stuff that we have hundreds of copies of ... could be one single function instead.
But, this is for an issue, not for this PR :-)