Fix of debug option and more feedback from test.sh