https://issues.apache.org/jira/browse/AMQCPP-552

port some tests from ActiveMQ to show this issue, plus it shows a few
other problems with redelivery.