add testcases and mock
rm lib/ajax.js