add tests over is_scalar_expr