Fixed proxy bug in testToFromString