Use database 13 for tests
Refactored tests, test authentication