[PATCH 1/1] tests: Check that side effects do not happen after discard.