Zaslat záznam emailem: On Asymptotically Optimal Tests Under Loss of Identifiability in Semiparametric Models