Testing how to use repositories