Unit test for String Analyzer