Fixes a bug in the calculation of pages

The current implementation uses floor when calculating the number of pages to display a set, this means the last page (where a remainder is concerned) will be inaccessible. Use ceil instead. Updated test to use total item size that results in remainder.