added second test for authenticate method