Adding tests for several stream wrapper operations