datastore: tests: refactor pb/transaction.

This makes it so protobuf request encoding/response decoding and transactional/non-transactional properties are all handled in one place.
An example of the simplified request.