Add a pagination test
Get rid of debug prints