add another test for the discard function