Extend paging test

Tests page=0, POST and authentication
Fix paging with queries starting with comments

Closes #144
Includes testcase