test method hashPassword in the Authentication class