Wrote BuildDirectoryManager.add_to_repository() tests.