Fixed a bug for text property numeric values; added tests