Completed Test of toXML for KVCache