Updated test for type == torch.Tensor