add function bind_expr_fn and some test cases