testing swapping in api