Added example and tests for TextCommands