updated for dynamodb test