I'm not an expert on chronic headaches, are those patients specifically worse on certain cognitive domains? I could imagine it to be a non-specific problem. If you're searching for an association with a cognitive measure you may need to find a task that results in enough variability. You could use the WAIS-IV Digit Symbol task, for instance. Performance on this measure can range from 0-133.