added test, made more consistent with HTMLText