Test whether collapsing is allowed.