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

Port of the following to master:

#458