Add i2c and spi test code to debug project.