prepare to func tests