Fix twitter test logic.
Merge pull request #1131 from solarissmoke/bug-twitter-test

Twitter "test settings" always reports an error