Fix awkward typos
Use patch.dict in embed tests