Add test coverage for getConfigSources() (contains failing test!)

Note that one test fails: One file is being returned twice in
one case, and that looks like a bug.