Fixed authentication testing