Pagination unit test: fix missing comma, remove unused var