test data and some more bug fixes to pagination