fix test timeout problem on Travis due to TERM=dumb env. setting and jline incompatibility