Fixing stream wrapper test