add test for serializing and deserializing match set