PCT-1085 New test for empty queries