Test: Add queue-consumer.js

Tidy up the queue-consumer along the way.