just take the stat out and see if it still over heats the heater will blow cold with no stat. if it over heats with the stat out then theres a problem else where. a sniff test is a good suggestion if the stat turns out to be ok.
you can check the stat by putting it in a kettle to see if it opens when the water boils.
cheers,
Phil