Various tests in C