Remove legacy test calls.

assertEquals --> assertEqual
failUnlessEqual --> assertEqual
failUnlessRaises --> assertRaises

Change-Id: I3b9da7358610896b4b7693aad2756c4c5bf9b5c3
userPassword should not be binary.

Change-Id: I1679b2a6d7f1208dafaddbb1ea166b8371b12df1