Adding test for creating extended model objects from XML and JSON and other tweaks.