add specs for stream validation