Add input/output tests.