test for e_swap