fixing func tests