fixed C tests

closes #131