I think the serialization tests are different enough that we should factor them out into a separate `TestConstraintsSerialization` class.