Remove HeartBeat setting

Heartbeat setting comes from RabbitMQ server.
It is not needed to set it on client side.
Refactor code for test
Add tests