improved Pager.cs and added TestCases for the class