change cmi_and_test to invoke the targets 'all', 'tests' and 'run_tests' separately