fix hanging test on travis