Added a unit test for datum (de)serialization.