fixes unit tests for new BufferedStream impl.