packet read and replay tests