Add $.ajax() test for failed requests