add tests for TextWidget