update debug.sh
cleanup
JENKINS-19353 - Exception error message newlines are escaped

Added a new test as well for testing both the test description and exception messages