Added a test for HeartBeat message validation