write a string into ESP8266 eeprom

    int value = test[cc]-'0'; //convert char to int

This is meaningless when test[cc] is 'T', for instance.

Reading all 8 of the 7 values in the array is a strange thing to do, too.

I can't figure out why you call EEPROM.begin() before the for loop, and then call EEPROM.end() in the for loop. I would expect that only the first (mangled) character was written to EEPROM.

And, sure enough, that seems to be what happened.