Tests: update scripts for Travis CI