[BUGFIX beta] Test new assertion

Ref #5047, #5056