c89 gdb valgrind unit tests