Some tests to check for compliance with new Kustvakt

Change-Id: I5d9db0725664af2c6f1164e4acb258a76d89a90f
diff --git a/t/user.t b/t/user.t
new file mode 100644
index 0000000..22297d3
--- /dev/null
+++ b/t/user.t
@@ -0,0 +1,19 @@
+use Mojo::Base -strict;
+use lib;
+use Test::More;
+use Test::Mojo;
+use Data::Dumper;
+
+$ENV{MOJO_USERAGENT_DEBUG} = 1;
+
+my $t = Test::Mojo->new('Kalamar');
+
+my $c = $t->app->build_controller;
+
+# Login with user credentials
+ok($c->user->login('test_h', 'p278h'), 'Login with demo user');
+is($c->stash('user'), 'test_h', 'Kustvakt is logged in');
+like($c->stash('auth'), qr/^api_token /, 'Kustvakt is logged in');
+
+done_testing;
+__END__