Added edit-mode auth tests for middleware and the content API route.