Add xml tests

Hello, sometimes it needs to test XML API. I added some tests to check that XML does work too