Add config.go and config_test.go