fixing function test