Test compile anonymous and named functions