improve assertions on ajax failure test