Fixed packages, added leak test over stream object