Fix DB config in test.json
Refactor AppRouter and AppRouter tests
Fix require in spec_helper.js
Add User to global for tests
Change redirect after authentication
Update AuthRouter tests