Testing add key functionality