MULE-6926: fix flaky tests

_ Marking some AJAX tests as flaky
(cherry picked from commit fa910c4)
(cherry picked from commit be346c2)