adding tests for TextHandler.cs