Added a test for isTensor