This tests XMLSerializer.serializeToString() throwing exception when node value is invalid and passing otherwise.