Added more unittests and fixed a bug in id assignment of IdentifiedDataSerializable of aggregations