Finished unit tests of xmlmodel