Test JPagination method
Merge pull request #1780 from wilsonge/tests

JPagination Unit Test