C unittests

Run

python generate_tests_data.py

to generate the tests data for each unit test.