Fix test: don't call function with empty queue
Merge pull request #2 from paulfurley/fix-final-empty-flush

Fix test: don't call function with empty queue