Adapt test.c to void* in interface