Simplify config tests. Move variable resolution into config module.