Fix Memory Leaks in SPIStream Tests