Wrote a test for IoCommand

Should be copyable for future test writing. Perhaps even pick all the
common code into a super class?