[test] Adapted GraphTest to zcheck.