Decoupled authentication from core and introduced as a plugin

Change-Id: I149e5f7f5ab2d833d812e6e381da8ad4b45c1ed7
diff --git a/t/user.t b/t/plugin/auth.t
similarity index 94%
rename from t/user.t
rename to t/plugin/auth.t
index 665a623..ff5988e 100644
--- a/t/user.t
+++ b/t/plugin/auth.t
@@ -11,12 +11,16 @@
 my $mount_point = '/api/';
 $ENV{KALAMAR_API} = $mount_point;
 
-my $t = Test::Mojo->new('Kalamar');
-$t->app->defaults('auth_support' => 1);
+my $t = Test::Mojo->new('Kalamar' => {
+  Kalamar => {
+    auth_support => 1,
+    plugins => ['Auth']
+  }
+});
 
 # Mount fake backend
 # Get the fixture path
-my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, 'server');
+my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, '..', 'server');
 my $fake_backend = $t->app->plugin(
   Mount => {
     $mount_point =>
@@ -26,7 +30,6 @@
 # Configure fake backend
 $fake_backend->pattern->defaults->{app}->log($t->app->log);
 
-
 $t->get_ok('/api')
   ->status_is(200)
   ->content_is('Fake server available');
@@ -62,13 +65,13 @@
   ->tx->res->dom->at('input[name=csrf_token]')->attr('value')
   ;
 
-
 $t->post_ok('/user/login' => form => {
   handle_or_email => 'test',
   pwd => 'pass',
   csrf_token => $csrf
 })
   ->status_is(302)
+  ->content_is('')
   ->header_is('Location' => '/');
 
 $t->get_ok('/')