SPI test code updated.