Add test for LongTensor