Test failure fixes for DynamoDB.

The way we dealt with the configuration in the previous change on
DynamoDB clients had knock on effects to clients of, for example,
Simple Email Service. Fixed those, and updated tests for DynamoDB
to handle the different way we instantiate its client.