fixed test_spi errors