Setup io_interface factory and fix a test