Improve rabbitmq type acceptance tests

This patch adds checks for idempotency and improves the shell command
syntax to contain one test at a time and use rspec tools to check
output and exit codes.