refactoring for unit test coverage
added a resource factory to load arbitrary files from git