Replace g_print with g_test_message
The test suite for JSON-GLib was written back when we only had gtester-report and freeform verbose test output. These days, we expect everything to conform to the Test Anything Protocol (TAP), which has specific constraints on the output format.