Updates to authentication testing logic