Add tests for DbMiddleware
Rename: mockNext -> next
Create items needed for testing middleware into a function
Use http.Error here as well
Add test for AuthRequired, add utility functions
Refactoring, add another test for AuthRequired
mockDbService -> dbs
More refactoring, finish tests for Middleware
Don't print errors in middleware
More useful error messages, remove unused logs
Update gitignore: Add coverage tool output
Use http.Error again
Move newTestUser, add tests for User methods
Use the ResponseWriter interface properly
User pointers, it's simpler
Move some logic into a common testing file
More pointers
Set user to AuthContext
Add test for GetUserApi
Add content parameter to mockHandlerParams