Tests: fix scripts for Travis CI