Test to check for correct pagination