tests: update test_c and test_nitunit4 to get reproducible outputs