Testing how repositories work