found and fixed a failing test

swap(i, i + 1) was failing