Add send/receive code [SPI behaviour], and add test in main