Do more flushing in packet test code