Add tests for input/output format checking