persistence repo tests generalized