Added unit tests for CountTagInText