Removal usage of config.Config from testhelpers
We have bunch of helper functions/structs for the testing purpose that are rely on the global config.Config variable.
This commit breaks some of those dependencies and required parameters now needs to be provided by the caller.
Part of: #2699 (closed)