This required a bit of thinking. What we do is we have one test that fakes $HOME, and then we do the various config tests there. The fake config we have is reused and we exercise all of the same codepaths.