extended query error test