use System::Introspector::Processes;
-my $probe = System::Introspector::Processes->new;
-my $data = $probe->gather;
+my $probe = System::Introspector::Processes->new;
+my $result = $probe->gather;
+
+ok($result, 'got result');
+my $data = $result->{processes};
+ok($data, 'got process data');
ok(@$data, 'received processes');
ok(not(grep { not $_->{pid} } @$data), 'all entries have pid');
-ok(not(grep { not $_->{command} } @$data), 'all entries have command');
+ok(not(grep { not $_->{args} } @$data), 'all entries have args');
done_testing;