Adding authentication tests
Minor formatting