tests for offset and pageSize