add tests and fix https://github.com/wyuenho/backgrid/issues/323

Fixes issue where paginator handles do not get updated css class.