test: Make Helper methods thread safe

Signed-off-by: Lewis Marshall <lewis@lmars.net>