Added tests for s3 authentication.