Fix crash in wraparound test.