Some initial tests

Note that the tests require RabbitMQ to be running, but they will fail
gracefully.