test read_to_str with unwrap method