Changed the method of verify the response code of ajax(alert -> dom) in CsrfTest. #94

I've backport to 1.0.x.
Please review #94.