How I do politely indicate that I am expecting my name to be added to the paper
If the situation is as you indicate and the original manuscript was submitted without the consent of all authors, then you have a case with the editor, although you should do your utmost to resolve this first with the thesis director.