Test authentication via various HTTP methods. Refactor authentication tests.