added test for login method on class twitter