[text widget] remove style command
[text widget] tests and bug fixes