Refactor OCaml.CFtoOCamlTest and add exit code