Added $format parameter to xquery unit tests.