Use cockpit_agent_strmatch() in tests for clarity

This helps us see what the contents of the string were when
CI tests fail due to races or similar.

Closes #487
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>