dynamodb: refactoring tests using DynamoDB local