Replace use of old `ansible.module_utils._text` and add a unit test to maintain backwards compatibility.