added test file c code
added tests for c code