Added "npm test" command and fixed heartbeat pass through mishaps