Add serialization test for `complement`