Fixed the failing repository tests