Rule out noise in unit tests by using only one kind of config src

Improve unit tests based on feedbacks from an abandoned PR #67