Modify the test to be more resilient (on Travis)