fix test fail when not on travis