Fixed bug in C versions of error message unit tests