new memory stream testing