Adding a unit test to validate wait behavior while packets are still being processed