tests: add test for interrupts spi_peripheral
fix: assumptions about synthesizable code
feat: add initial test for spi peripheral