added tests for functions2.cs