- Fixed test to accurately test the problem and patched the code to make...

... it work.

String objects can have the same characters and not be equal.  synchronizing on it would not work.