Fix failing test that constructed a shared variable from a tensorConstant



This is not supported anymore as this create a generic and when people do this, it was a mistake. Also this shared variable wasn't used, so I just remove it.