Made stream data structs testable