[cyril] changed test condition of swap.