Fixed unit test to use the newXMLGregarianCalendar constructor