The frequency in which heartbeat messages are sent has been decreased. The code of some unit tests has been reformatted.