gtk_test_init() ends up calling gtk_init() which tries opening the default display. CI jobs sometimes seem to trip over this even when run through xvfb-run. Therefore we use g_test_init() instead.
This is an optional method as not all origins might support this (e.g. SIP).
This will prove beneficial when we also add tests for the policy engine plugins. The increased locality is also nice to have.