tests of c code