Added tests for different classes of functions