added tests for inf and nan roundtrips