curl: add a test (fetches its own tarball)

Fetch the stable tarball and verify its checksum against the stable checksum in formula. This should work, but please tell me if it's not a good idea!

Granted, this requires a network connection. Assuming the test is run after `brew install`, network should be available.