testing code in C