Add cmake tests for functions - usefull for algos