test for function, not as a string