refactor(config): Simplify and test config pkg