Add test for torch.view and torch.viewAs