Add pagination test. Cast page count to int.