Add tests of queue order.

Thanks to @smikes for the original tests in #111; they were redone to fit better with the existing style.