Fixed unit tests and reset password process