Adding tests for the pager.

Relate to issue #1255