added test C program for library