Fixing some StreamAdapter tests