Test failure to provide filename to write().