tests: Don't use g_assert_nonnull()

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