Added test to heartbeats to check if sync timeout was working properly

Signed-off-by: Juan Martin Runge <jmrunge@gmail.com>