Add content middleware tests
Expose mongoose connection