Reset password code behind for test