add test.c
Add declarations for helpers

c99 was complaining about definitions without declarations
Fixes after valgrind leak checks