[TEST] - fix DefaultUnifiedRepositoryTest

@rmansoor please review the tests. Plus there is fix for encoding Node properties name, two legacy classes removed. I had to cut the test to pieces because of checkstyle 2000 lines rule.
Have we done some testing make sure this change will not cause any issue with special characters