updated testIo to use class factories