Relationships test now uses repositories instead of template