add i2c test code