added more unit-tests serialization for ptype for xml, hdf5

all ptypes covered for all serializable file types. json does not work in unit-tests for char and int data types.