Add checks to the RTQ pending stats to ensure 0 after each test Edit

Port of the following to master:

#458