Refactoring: Some functions moved from managedeltarepos to util
tests: Add a repo to test data