Added tests for write_url().