Attemping to mock I/O for fox-repl test