add nand test code