Add heartbeat tests

A patch that sets up a test suite for heartbeat-related tests, with initial cases covering the Heartbleed vulnerability, provided by Mike Bland as a patch to openssl-dev mailing list.