fixing the test to run on travis-ci