add serialiser of map message objects to message cache objects and tests