Why test fails on travis?