adds testing for repo function