Two issues in this. One is your creating the env twice - module and test environment. Second, the set_config_params() which creates the config object, after the env creation. Do it before env creation. Creation of config object is done in set_config_params(). Why you used m_config = new() in test build_phase. Do the changes and re-compile it.