DRY repository tests