more debug info added to test tool

please note: heredoc*.mammouth tests SHOULD compile. Not sure it's not.