Fix function pattern tests