fixed bad xml, and added a test