Adding repository tests