[test] Fix timeout issues on TravisCI