Add tests for swaps.