adding tests for is_function
adding is variable test