[ENGINE-264] Improved Ajax request testing