Support configuration of query defaults

Change-Id: I04b2077d3b803795f070268687103c557d81606a
diff --git a/t/query.t b/t/query.t
index 376a879..54f2a8f 100644
--- a/t/query.t
+++ b/t/query.t
@@ -86,8 +86,22 @@
   ->attr_is('#pagination','data-count','25')
   ->tx->res->dom->at('#error')
   ;
+
 is(defined $err ? $err->text : '', '');
 
+# Query passed
+$t->app->defaults(items_per_page => 20);
+
+$t->get_ok('/?q=baum')
+  ->status_is(200)
+  ->content_type_is('text/html;charset=UTF-8')
+  ->element_count_is('#pagination > a', 5)
+  ->attr_is('#pagination','data-page','1')
+  ->attr_is('#pagination','data-total','3')
+  ->attr_is('#pagination','data-count','20')
+;
+
+$t->app->defaults(items_per_page => 25);
 
 $t->get_ok('/?q=[orth=das')
   ->status_is(400)