Fix serious bug in tests with authentication (tests shouldn't pass due to a bug in verify_password!)
(the bug was inserted in commit bb996f)