[test] further tests for wrapped cached input streams
[bugfix] Make sure to set cache status correctly when wrapping