Algorithm for testing EEPRM
Function of EEPROM and flash is to hold specific data or code. You can use checksum to know if it has correct or corrupt data. Writing to flash too many times will wear it out. Thus you need to ensure that:


chips are physically present in the board (soldered into their places);
you may want to have chip programmed one time in full and compare to pattern you program to ensure that chip is not DOA;
you may need to check for proper data using checksum on each power up, and act accordingly (e.g. display message, use other data source etc);
you will need to check for properly programmed data only after programming.