Add unit test for history view pagination.