Allow to get pointer to memory associated with data object.
Update test to recent interface changes.