Fix add key for machine test