passing unit test for password reset functionality