Tests curl command generation