Added higher order function test.