Fixed issue in TensorBasis; the unit test now passes.