Test charactersAppearingExactlyOnceInEachString