Tests for stream accessors