Improved spi master test case