test/testutil.h test registry macros

These help standardize the structure of main() and result reporting.
Use testutil registry macros in heartbeat_test