Exploring why test fails on travis-ci