Make tests backwards compatible with glib < 2.30

g_test_fail() introduced in 2.30; debian squeeze runs 2.24

Define a always-fail g_assert pragma if g_test_fail is not available.

Pair programmed with @barneydesmond