add check c unit test framework for some sanity check