Test fromString code path