[Version Control] Unit Tests - Refactoring.

Refactored RightRepositoryDetection.
Removed virtual property from tests which work in all cases.