Adding function test