#3860: Added tests for different kinds of functions