spi: improve spi unit test