phpunit test for XQuery generation

Change-Id: Ic4dfed43fb32216477b7038e5903edbd7d91e37f