tried to make the test for #42 more reliable

I did this change on my master branch as I didn't want to change the .travis.yml file