modified test script for travis-ci