Improved persistent stream parser test