add run_command
add tests for run_command