* Update extension helpers to avoid inefficient construction of DenseTensor. Add tests for extension helpers.