Added test code for I2C.