Test scripts: fix authentication configuration logic with endurance test. Endurance test with authentication enabled started working.