refine testEEPROM script