Fixes twitter gem deprecations and tests.