adding write test for curl