add and test repository load method