Add config module with tests