Testing that we can wait even if queue is empty