resets password and tests