Fix a logic error in StringKeyedTest