Add repository tests