fixed repository tests