Updated check for unsafe calls to .text() in func. tests.