Swaps A and B in test case 10