first draft of SPI tester