Put in stream wrappers to help improve the testablilty of clearice