Abstracted XML testing into own class.  Added more negative cdef tests.