EDACs and test integration strategies for NAND flash memories