SPI works test code applicable for communication