test: Better debug on test failure

Use g_assert_cmpstr() so that if the value isn't NULL, we see the value
printed out in the logs.
1 job for wip/hadess/add-ci in 2 minutes and 45 seconds
Status Job ID Name Coverage
  Test
passed #1672044
build_stable

00:02:45