fix test fails on travis