column swapping unit tested