Added printing functions for debugging purposes. When running the tests,
no stderr will be printed unless there is a failure.
.travis.yml: removed the section `before-install`, for it seemed not to
work in Travis, or at least not always.
setup_test_environment.sh: fixed illegal exit numbers.