Fixed compiler errors
Integrated logging info into unit tests for run_cmd