Added mocking for xmlmodel