Fix tests broken by removal of CA/ from request URLs.
Add debug logging macro so we aren’t polluting the output of the release build.