Fixed ficture test for errors

Change-Id: I1957277d5ee2ef423ef5b15c553e1ffd97c58c01
diff --git a/t/remote.t b/t/remote.t
index 845c327..7148428 100644
--- a/t/remote.t
+++ b/t/remote.t
@@ -31,5 +31,21 @@
   ->element_exists_not('#ql-field option[value=poliqarp][selected]')
 ;
 
+# Check paging
+$t->get_ok('/?q=test&p=2&ql=cosmas2')
+  ->text_like('#total-results', qr/\d+$/)
+  ->text_is('#pagination a[rel=self] span', 2)
+  ->element_exists('#ql-field option[value=cosmas2][selected]')
+  ->element_exists_not('#ql-field option[value=poliqarp][selected]')
+;
+
+# Check for authorization
+#   this should just trigger a fixture - it's not serious
+$t->get_ok('/?q=test&p=2&ql=cosmas3')
+  ->element_exists_not('#pagination a[rel=self] span')
+  ->element_exists('#search #no-results')
+  ->text_like('.notify-error', qr!No entity found!)
+  ;
+
 done_testing;
 __END__