(Issue 315) Adding unit test for disabling local auth.