Generate auth tokens, default content type, and more tests
Switching unauthorized status code to 401
Moved ref function from mongoose to separate dbHelper