tests: Don't use g_str_match_string()

Which downgrades the run-time requirements of gom (g_str_match_string()
is only available in glib 2.40).

Spotted by Mathieu Bridon <bochecha@fedoraproject.org>