NIOS self-test program