updated bscan test program
updated so that openocd and fpgajtag give same results