Fixed flakey spec on travis CI