add cfun tests