added unit test to check XML element ordering

Hi Andreas,

I have added a unit test to check if the sorting of xml tags works on setting the sortPropertyNames flag to true. Please have a look. 

Cheers,
Akshay