datastore: refactor tests.

This splits testing of the request module into its own test module.

Also, adds tests for #260.
Merge pull request #252 from stephenplusplus/spp--datastore-test-refactor

datastore: refactor tests.