Improve test.c to use checking macro (auto validating) instead of printf.