Test queue.declare (equivalence and error reporting)