add unit tests for i2ctemp

- move temp conversion to utililty class
- add test cases for temp conversions