Fix: Add basic test for RepositoryConfig object.
Fix: Switch null check after exec to a cast for simplicity.