test code for C