Add unit tests for data_utils
The following discussion from !1863 (merged) should be addressed:
thought: We don't seem to have any specs for these utils. It might warrant a follow-up issue to add some.
This is not high priority, since these utils are implicitly tested by component specs which rely on them.