Fix heartbeat_test for -DOPENSSL_NO_HEARTBEATS

Replaces the entire test with a trivial implementation when
OPENSSL_NO_HEARTBEATS is defined, after a report from Lukas Tribus
on 2014-05-22: "build failure when using OPENSSL_NO_HEARTBEATS".