fixed issue with travis ci and request objects