DataLoader accepts Datasets and should also accept tensors.
However, I would recommend to wrap even tensors into a TensorDataset.
As long as your testdata and testlabel are tensors, it should be fine.