Testing the NAND Flash Memory