Working on I/O tests (with new compare function)