Improved assertions in heart rate tests
Fixed deserialization issue