Add test for GH-1105.
Add test for crash with empty condition.