expr_uses_func function

Test that a particular function has been used.