added tests for HTTP redirection and certificate download