refactor
Fixing test case authnticate
refactor tests