Test repository connection and add namespace definitions to it