added testRpc to replace heartbeat for testing