test download code