added logging to unittests and moved the script.