more thorough testing of heartbeat encoding