broken SPI tester code