my $tmp = get_unused_workspace();
my $tmp2 = get_unused_workspace();
-$i3->command("workspace $tmp")->recv;
+cmd "workspace $tmp";
ok(@{get_ws_content($tmp)} == 0, 'no containers yet');
my $second = open_empty_con($i3);
ok(@{get_ws_content($tmp)} == 2, 'two containers on first ws');
-$i3->command("workspace $tmp2")->recv;
+cmd "workspace $tmp2";
ok(@{get_ws_content($tmp2)} == 0, 'no containers on second ws yet');
-$i3->command("workspace $tmp")->recv;
+cmd "workspace $tmp";
-$i3->command("move workspace $tmp2")->recv;
+cmd "move workspace $tmp2";
ok(@{get_ws_content($tmp)} == 1, 'one container on first ws anymore');
ok(@{get_ws_content($tmp2)} == 1, 'one container on second ws');
my ($nodes, $focus) = get_ws_content($tmp2);