Added new validation for callback in i2cWrite, updated tests.