added function definition test.