Fixing error with phantomCapabilities test

wd.text fails with latest phantomjs

See: https://github.com/detro/ghostdriver/issues/325