added SPI tracing to test program