Restructured yaffs2 initialize spare function

Added test to limit number of blocks tested by yaffs2 in auto-detect mode