Made some displayed tooltip code for certain tests appear cleaner

Tests which aren't in comment strings now have their code stripped of the "function () {" wrapper when included in a tooltip, putting them on par with the others.

(For merge conflict avoidance, this commit doesn't update the HTML files.)