Added swap command test