Fix unset primary in Repository::insert with test (fails now on Query.FindOne)