add a test for RecordableInputStream