add unit tests for generating commands; fix logging.py path