a test for repository functions