Updated tests to reflect the interface extraction and encapsulation of
the TextEncoder