Fix #1462 "Two heartbeat events in the same request cause "unexpected request sequence number""

Also manually tested by sending multiple hearbeat events in a single request by hacking xforms.js.
Don't use deprecated JUnit asserts