added a test for hearbeat crash seen at 41st Param
corrected type in print and changed number of writes