Add tests to CharIO