fix failure testing on travis-ci