created function test