add test case for inifinit autoreseting stream