Tests for bugs in ask.
Fix a bug in ask.
Merge pull request #1961 from placasse/extract_facts

A little bug in ask (part 2).