refactor tests to test config through the public interface