support serialization of ids when loading. alter tests to check serialised data