added test.c and Makefile