Fixing a crash in the vector tests