isOnFirstPage or Last page methods added + some tests