[iOs] Added some Unit tests + encode password