[base] Fix unit tests for DataObject.