added test for ajax error handler