changing test to see if no messages left in queue