Add unit tests for authenticaitonMethod