Here's perhaps an example of what you want to test: https://github.com/mhart/dynalite/blob/master/test/batchGetItem.js#L520-L584