fix func tests