test: Make Helper methods thread safe

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #561 from flynn/test-helper-mtx

test: Make Helper methods thread safe