[MOD] XQuery tests: add external variable declarations. Related to #833