Use cockpit_agent_strmatch() in tests for clarity

CI seems to be failing in a racy way on of the test-restjson tests. Using cockpit_assert_strmatch() allows us to see a bit more about why it's failing like that when it does.