Added XMLDocument test for betterInstanceOf()

thanks to n1k0