Test and upgrade api-key.json