fix weird issue where mocking Iface.get_kernel_config in one test file made this
function fail in another test function. so have to keep copy of orig func do the
mocking and test and the reassign the orig_func back to the
Iface.get_kernel_config