write_from test