Introduced experimental API method and fixture system

Change-Id: Iffb6d3c4f7f21bcf40c904d40d137b206a3ba266
diff --git a/t/remote.t b/t/remote.t
index ec38696..78539d7 100644
--- a/t/remote.t
+++ b/t/remote.t
@@ -1,11 +1,27 @@
 use Mojo::Base -strict;
-use lib '../lib', 'lib';
+use Mojo::File qw/path/;
 use Test::More;
 use Test::Mojo;
 
-$ENV{MOJO_MODE} = 'test';
+my $mount_point = '/api/';
+$ENV{KALAMAR_API} = $mount_point;
 
 my $t = Test::Mojo->new('Kalamar');
+$t->app->defaults('auth_support' => 1);
+
+# Mount fake backend
+# Get the fixture path
+my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, 'fixtures');
+my $fake_backend = $t->app->plugin(
+  Mount => {
+    $mount_point =>
+      $fixtures_path->child('query_backend.pl')
+  }
+);
+
+# Configure fake backend
+$fake_backend->pattern->defaults->{app}->log($t->app->log);
+
 
 if (0) {
 
@@ -59,6 +75,8 @@
 };
 
 
+
+
 # Check for query error
 $t->get_ok('/?q=[orth=das&ql=poliqarp')
   ->element_exists('.notify-error')