fix test failures caused by pagination