testing creating repository function