Restructured the way authentication tests are constructed