heartbeat param to heartbeat request

Also unit test for global here now and where now