refactory check in feature test.
fixed #368 , redirect to last url after sign in.