[cmake] fixed tests in dunecontrol --use-cmae situation