Unit Testing for Torch.