test for function, not as a string
add test for map