Tests

Fixing the test so that it doesn't assume the headers and curl options
are empty