fixed broken pagination tests. Closes #1352