Wrote MaterialManager.add_to_repository() tests.