fixed logged in test, wrote log out test