Made test cases for C functions