Add a test for heartbeat view db problems, refs #128