Some setup code for IO testing