[StelalDBTest] Use MemoryStream for faster testing