Finished test for basic I/O
Added tests.