Test spec for testing stream.