Added twitter api key checks to tests