Finished test cases for authenticate provider