partial experimental rewrite of ManagedRepositoryTest
Merge pull request #1166 from mtbc/ManagedRepositoryTest

partial experimental rewrite of ManagedRepositoryTest