fixed func tests