Added function test