Adding a test for MethodDispatcher::addRepository