add group ability to Paginator\Adapter\DbTableGateway
add unit test
add having
PR #4427
* added better testing for DbTableGateway paginator