mkdir to before script - brought back write and read tests