changed tests because wd text() fails with latest phantomjs

It should fix the broken test with phantomjs 1.9.7.