finished unit_test for CommandIO