Fixes to _generategetddbrequestobject method and related tests.