add-regression-tests-for-discard