Fix some defects in tensor module.

Now `test_args` pass.