Fix alert testcases in user_spec.js.