Do I understand this correct?  This assigns "path" the generated filename and checks it's the same as the the key or "correct".