Fixed tests

* adapted tests to current protocol format
* adapted to reactive heartbeat mechanism