tests for swapping and console