add two tests to test if value is a function