Added tests for pack stream.