Added test for string generation algorithms comparison