added code and tests for C to F conversion