test: Make Helper methods thread safe