Added tests for resetPassword()