Add some unit tests for the query function.

I was using the :limit option and it didn't seem to be working -- didn't realize by default the query method will call dynamo 5 times.

Anyway, in my debugging I wrote some tests so I thought I'd let the work not go totally wasted. Hope it's welcome.

Tested against dynamodb-local.