ADd unittest for deserilization of structure.