tests: add basic i/o test.