Fix dynamodb tests