A helper class for writing I/O tests. I couldn't find a location for general purpose test utilities like this one, so I created a new one.