encapsulate config import
simplify tests
reduce uglyness of test