added test.c/.h files. Something's still wrong in text output