fix test for delphi

--HG--
branch : trunks
additional space in output, test for a failed input (actually everything works fine, but it was inputted as template instead xquery)

--HG--
branch : trunks
fix internettools headers on Android

--HG--
branch : trunks