spi: Use Begin and End methods in test.