Adds InstanceResource.getDateProperty() method and modifies to use it on returning date properties.
Modifies some tests fails.