tests to make sure packet memory allocation appears to work
fix leak in reading