added tests for hex conversion