Did some more work on authentication testing and the testing setup script.