Fixes tests broken by the move from redirection to HTTP status codes on authorization failure.