added the block test code for usart and spi