tests and typo fix for ajaxSuccess/ajaxError