Write tests in C