tests: cast output of malloc() to goal type
tests: cast output of malloc() to goal type

clang++ did not like casting void* to char* implicitly.

tarruda/check,tarruda/check,tarruda/check,tarruda/check,tarruda/check