to test the method hashPassword in the Authentication class