trying to debug testFunction in C