Method execute_cmd() now accept HASH reference and has no validation of
input parameters; refactoring; unit-tests improved