fix obsolete error codes in test/cmp_msg_test.c