Fix tests on travis in case of slow process