testsuite: another fix to sitem_compare and sitem_is_in_sitemlist tests

g_type_init() is deprecated, using glib_init() instead.
Another fix is to use strlen(text) - sizeof(text) was making utf8 routines unhappy.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>