fix function test