[TEST] - fix RepositoryResourceTest

fixing ignored unit tests, rewrite to use the code from DefaultUnifiedRepositoryBase for initializing the test.