Added unit test to catch split packet errors