fixed error in tensor tests