testing types for streams