Fix build with G_DISABLE_ASSERT defined
The commits to convert some tests to g_assert_*()
do not cover all the tests; they’re just a few bits of low hanging fruit I converted while waiting for this to build and test.
Closes #1708 (closed)
Edited by Philip Withnall