change test port from 4443 to 2222
add PIN_BASENAME_PREFIX, rename process_output() to run_command(), add TODOs