added more tests and debugging statements

In the process of trying to test one if statement in the queue code, I
realized that it should never have been triggered, so I changed the code
to assert that it's not true instead.
3 files changed