agent: improve config load tests, reset globals where required
agent: improve config load tests, reset globals where required

mozilla/mig,mozilla/mig,ameihm0912/mig,mozilla/mig,mozilla/mig,mozilla/mig,ameihm0912/mig,ameihm0912/mig