Refs #10372 Add unit tests for prompt before discarding