class tests in c